home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / rdfIDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  125 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM rdfIDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_rdfIDataSource_h__
  6. #define __gen_rdfIDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class rdfITripleVisitor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    rdfIDataSource */
  21. #define RDFIDATASOURCE_IID_STR "ebce86bd-1568-4a34-a808-9ccf9cde8087"
  22.  
  23. #define RDFIDATASOURCE_IID \
  24.   {0xebce86bd, 0x1568, 0x4a34, \
  25.     { 0xa8, 0x08, 0x9c, 0xcf, 0x9c, 0xde, 0x80, 0x87 }}
  26.  
  27. /**
  28.  * Interface used in RDF to describe data sources.
  29.  *
  30.  * @status PLASMA
  31.  */
  32. class NS_NO_VTABLE rdfIDataSource : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(RDFIDATASOURCE_IID)
  36.  
  37.   /**
  38.      * Visit all the subject resources in the datasource. The order is
  39.      * intederminate and may change from one invocation to the next.
  40.      * The subjects will be in the aSubject argument in calls into
  41.      * aVisitor, aPredicate and aObject will be null.
  42.      * @note Implementations may throw NS_ERROR_NOT_IMPLEMENTED for
  43.      * this method, but in this case RDF serializations of this
  44.      * datasource will not be possible.
  45.      */
  46.   /* void visitAllSubjects (in rdfITripleVisitor aVisitor); */
  47.   NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) = 0;
  48.  
  49.   /**
  50.      * Visit all the triples in the datasource. The order is
  51.      * intederminate and may change from one invocation to the next.
  52.      * @note Implementations may throw NS_ERROR_NOT_IMPLEMENTED for
  53.      * this method, but in this case RDF serializations of this
  54.      * datasource will not be possible.
  55.      */
  56.   /* void visitAllTriples (in rdfITripleVisitor aVisitor); */
  57.   NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) = 0;
  58.  
  59. };
  60.  
  61. /* Use this macro when declaring classes that implement this interface. */
  62. #define NS_DECL_RDFIDATASOURCE \
  63.   NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor); \
  64.   NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor); 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  67. #define NS_FORWARD_RDFIDATASOURCE(_to) \
  68.   NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) { return _to VisitAllSubjects(aVisitor); } \
  69.   NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) { return _to VisitAllTriples(aVisitor); } 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_RDFIDATASOURCE(_to) \
  73.   NS_IMETHOD VisitAllSubjects(rdfITripleVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitAllSubjects(aVisitor); } \
  74.   NS_IMETHOD VisitAllTriples(rdfITripleVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitAllTriples(aVisitor); } 
  75.  
  76. #if 0
  77. /* Use the code below as a template for the implementation class for this interface. */
  78.  
  79. /* Header file */
  80. class _MYCLASS_ : public rdfIDataSource
  81. {
  82. public:
  83.   NS_DECL_ISUPPORTS
  84.   NS_DECL_RDFIDATASOURCE
  85.  
  86.   _MYCLASS_();
  87.  
  88. private:
  89.   ~_MYCLASS_();
  90.  
  91. protected:
  92.   /* additional members */
  93. };
  94.  
  95. /* Implementation file */
  96. NS_IMPL_ISUPPORTS1(_MYCLASS_, rdfIDataSource)
  97.  
  98. _MYCLASS_::_MYCLASS_()
  99. {
  100.   /* member initializers and constructor code */
  101. }
  102.  
  103. _MYCLASS_::~_MYCLASS_()
  104. {
  105.   /* destructor code */
  106. }
  107.  
  108. /* void visitAllSubjects (in rdfITripleVisitor aVisitor); */
  109. NS_IMETHODIMP _MYCLASS_::VisitAllSubjects(rdfITripleVisitor *aVisitor)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* void visitAllTriples (in rdfITripleVisitor aVisitor); */
  115. NS_IMETHODIMP _MYCLASS_::VisitAllTriples(rdfITripleVisitor *aVisitor)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* End of implementation class template. */
  121. #endif
  122.  
  123.  
  124. #endif /* __gen_rdfIDataSource_h__ */
  125.